/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DSENS;

/**
 *
 * @author teeteto
 */
public abstract class AbstractLog{ 
    private TimeLine tl;

    public AbstractLog(){
        tl=GlobalInfo.TIMELINE;
    }

    public void printTime(){
        String logTime = "[Slot "+tl.getTs()+"]  ";
        System.out.print(logTime);
    }
    public abstract void printEvent(Event e) throws LogException;
    public abstract void printNode(Node n) throws LogException;
    public abstract void printMessage(Message m) throws LogException;
    public abstract void printLog(String l);
    public abstract void printlnLog(String l);
}
